<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    async function fn() {

    }

    // var fn = async function (v) {
    //     return v;
    // };

    // var fn = async (v) => {
    //     return v;
    // }

    // var fn = async v => {
    //     return v;
    // }

    // var fn = async v => v;





    (async function () {

    })();

    var obj = {
        a: 1,
        b: 2,
        sum: async function () {
            return this.a + this.b;
        },
        async say() {  // 函数简写
            console.log(this.a, this.b);
        }
    }

    // obj.sum();


    document.onclick = async function () {

    }





</script>

</html>